//
//  HomeWebViewController.swift
//  Weibo8023
//
//  Created by styshy on 15/12/25.
//  Copyright © 2015年 sz. All rights reserved.
//

import UIKit

class HomeWebViewController: UIViewController {
    
    private var url:NSURL
    
    private lazy var webView = UIWebView()
    
    
    override func loadView() {
        view = webView
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        webView.loadRequest(NSURLRequest(URL: url))
    }
    
    // 构造方法
    init(url:NSURL){
        self.url = url
        super.init(nibName: nil, bundle: nil)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
